Updating MockMotor
Updating With Script
The updateMockMotor.sh
script downloads the most recent MockMotor version to the current directory and unpacks it.
Once updated, MockMotor has to be stopped and re-started to reflect the changes. In a clustered environment, all clone nodes must be updated and restarted after the admin node is up.
Backups and Rollbacks
To support rollbacks, the script renames the previous version of the JAR with the current date extension.
$ ./updateMockMotor.sh
...
$ ls -l
...
-rw-r--r-- 1 mm mm 90340568 Jan 25 00:46 mockmotor.jar
-rw-r--r-- 1 mm mm 90320560 Jan 25 00:35 mockmotor.jar.2022-01-25
...
The configuration file mockmotor.config.xml
is not overwritten. The script does overwrite the mockmotor.config.xml.template
template file.
Updating Manually
Alternatively, you can download and unpack the latest version manually:
curl -k https://mockmotor.com/download/latest | tar xvz
You’d have to back up the JAR file mockmotor.jar
manually if required.